package com.example.dryyzx.encapsulation;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;

public class GoOutListReturn implements Serializable {
    public int total_page;
    public ArrayList<GoOutList> goOutLists;

    public GoOutListReturn(){
        goOutLists=new ArrayList<>();
    }


    public void addData(GoOutList newGoOutList){
        this.goOutLists.add(newGoOutList);
    }

    public void setTotal_page(int totalPage){
        this.total_page = totalPage;
    }

    public int getTotal_page(){
        return total_page;
    }

    public ArrayList<GoOutList> getGoOutLists() {
        return goOutLists;
    }

    public void setGoOutLists(ArrayList<GoOutList> goOutLists) {
        this.goOutLists = goOutLists;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }

}
